#import "LivepluginPlugin.h"
#if __has_include(<liveplugin/liveplugin-Swift.h>)
#import <liveplugin/liveplugin-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "liveplugin-Swift.h"
#endif

#import "FURenderer.h"

@implementation LivepluginPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
    [SwiftLivepluginPlugin registerWithRegistrar:registrar];

}

+ (CVPixelBufferRef)renderPixelBuffer:(CVPixelBufferRef)pixelBuffer withFrameId:(int)frameid items:(int*)items itemCount:(int)itemCount{
    
   return [[FURenderer shareRenderer] renderPixelBuffer:pixelBuffer withFrameId:frameid items:items itemCount:itemCount];
    
}

+ (int)itemWithContentsOfFile:(NSString *)path{
    
    return [FURenderer itemWithContentsOfFile:path];
}

+ (int)itemSetParam:(int)item withName:(NSString *)name value:(id)value{
    
   return [FURenderer itemSetParam:item withName:name value:value];
    
}

@end
